package ExamSystemClient.managerSystem.studentManagement;

import ExamSystemClient.model.Student;

import java.util.List;

/**
 * 遍历打印所有学生信息
 *
 * @author huangshuxian
 */
public class PrintStudents extends StudentInfoManage {

    public PrintStudents(List<Student> studentInfos) {
        super(studentInfos);
    }

    @Override
    public void operate() {
        for (Student studentInfo : studentInfos) {
            System.out.println(studentInfo);
        }
    }

    @Override
    public PrintStudents show() {
        System.out.println("打印所有学生信息！");
        return this;
    }
}
